﻿@model wne.Models.TestModel

@{
    ViewBag.Title = "View1";
}

<h2>View1</h2>

@using (Html.BeginForm("View1", "Admin", FormMethod.Post))
{
     for (int i = 0; i < Model.book.Count; i++)
     {
         @Html.EditorFor(m=>m.book[i].id);
         @Html.DropDownListFor(m=>m.book[i].SelectedValue, new SelectList(Model.book[i].list, "Key", "Value"))
         for (int j = 0; j < Model.book[i].qqq.Count; j++)
         {
             @Html.CheckBoxFor(m => m.book[i].qqq[j].Checked)
             @Html.HiddenFor(m => m.book[i].qqq[j].Text)
             @Html.DisplayFor(m => m.book[i].qqq[j].Text)
         }
     }
     <input type="submit"/>
}